Followon to r279744. Find the other exception types and make __throw_XXX routines (and call them). Remove the generic __libcpp_throw routine, since no one uses it anymore. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@279763 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/string_view b/include/string_view index 67fc606..47ea926 100644 --- a/include/string_view +++ b/include/string_view
@@ -261,7 +261,7 @@ const_reference at(size_type __pos) const { return __pos >= size() - ? (__libcpp_throw(out_of_range("string_view::at")), __data[0]) + ? (__throw_out_of_range("string_view::at"), __data[0]) : __data[__pos]; } @@ -319,7 +319,7 @@ size_type copy(_CharT* __s, size_type __n, size_type __pos = 0) const { if (__pos > size()) - __libcpp_throw(out_of_range("string_view::copy")); + __throw_out_of_range("string_view::copy"); size_type __rlen = _VSTD::min( __n, size() - __pos ); copy_n(begin() + __pos, __rlen, __s ); return __rlen; @@ -329,7 +329,7 @@ basic_string_view substr(size_type __pos = 0, size_type __n = npos) const { return __pos > size() - ? (__libcpp_throw((out_of_range("string_view::substr"))), basic_string_view()) + ? (__throw_out_of_range("string_view::substr"), basic_string_view()) : basic_string_view(data() + __pos, _VSTD::min(__n, size() - __pos)); }